PLG CONVERTER

This Converter reads and writes models in the file format defined by Dave Stampe and Bernie Roehl.

It adds ones entry to the conversion lists:

PLG *.plg

Geometry
PLG files can hold named objects composed of polygons with three or more sides. No hierarchies or rotational centers are present.

PLG files that start with "#MULTI" can contain several versions of the same object at different resolutions. All versions of each object are imported.

Material attributes
PLG files store material attributes that are mapped to screen colors using a complicated scheme that is familiar to users of PLG-compatible programs but difficult to understand by others. In short, PLG files do not store direct RGB values, but many PLG-compatible programs use a specific palette.

On import, new materials are named "plg_0xFFFF" where FFFF is replaced by the hexadecimal polygon color value used in the PLG file.

On export, if a material name matches the "plg_0xFFFF" pattern, then that color value is passed through to the PLG file unaltered. Otherwise, all polygons are assigned an absolute, constant-color value between 0 and 255, using the most similar color in the standard PLG palette.

Options dialog
This Converter has no options on its dialog.

Background
The PLG format is used in many freely distributable graphics packages such as REND386, Avril, Gossamer and VR386, the Waite Group's "VR BASIC" book, the NorthCAD modeler, and many other tools.